import request from '@/utils/request'

// 查询防治水管理信息列表
export function listCsDefendWaterManageInfo(query) {
    return request({
        url: '/mine/csDefendWaterManageInfo/list',
        method: 'get',
        params: query
    })
}

// 查询防治水管理信息详细
export function getCsDefendWaterManageInfo(id) {
    return request({
        url: '/mine/csDefendWaterManageInfo/' + id,
        method: 'get'
    })
}

// 新增防治水管理信息
export function addCsDefendWaterManageInfo(data) {
    return request({
        url: '/mine/csDefendWaterManageInfo',
        method: 'post',
        data: data
    })
}

// 修改防治水管理信息
export function updateCsDefendWaterManageInfo(data) {
    return request({
        url: '/mine/csDefendWaterManageInfo',
        method: 'put',
        data: data
    })
}

// 删除防治水管理信息
export function delCsDefendWaterManageInfo(id) {
    return request({
        url: '/mine/csDefendWaterManageInfo/' + id,
        method: 'delete'
    })
}
